import java.util.*;

public class Calc {
    public static void main(String[] args) {
        if(args.length != 3) {
            System.out.println("Usage: java Calc operand1 operator operand2");
            System.exit(0);
        }
        
        int result = 0;
        
        switch(args[1].charAt(0)) {
            case '+' : result = Integer.parseInt(args[0]) +
                    Integer.parseInt(args[2]);
                break;
            
            case '-' : result = Integer.parseInt(args[0]) +
                    Integer.parseInt(args[2]);
                break;
                
            case '*' : result = Integer.parseInt(args[0]) +
                    Integer.parseInt(args[2]);
                break;
                
            case ':' : result = Integer.parseInt(args[0]) +
                    Integer.parseInt(args[2]);
                break;
            
            default : System.out.println("You have enter invalid values!");
                break;
        }
        
        System.out.println(args[0] + ' ' + args[1] + ' '
                + args[2] + " = " + result);
    }
}